import Mock from 'mockjs';

const REACT_APP_DEBUG = process.env.REACT_APP_MOCK == '1';

if (REACT_APP_DEBUG) {
  Mock.mock('/sso/sendSmsCaptcha', 'post', {
    // code: 0,
    // msg: '接口调用成功',
    // tips: '接口调用成功',
    // count: null,
    // data: {
    //   token: 'fbe0cedcbfc04619a6b7d3ffc126b9df',
    //   userName: 'dx_cs_1102',
    //   userId: 24,
    //   roleIds: [1003],
    //   resetPasswordFlag: 1,
    // },
    // ok: true,
    // fail: false,

    code: 2000000,
    msg: 'sso-rpc接口调用失败',
    tips: '账户或密码不正确',
    count: null,
    data: null,
    ok: false,
    fail: true,
  });
}
